package com.yugao.fintech.antelope.member.manager;

import com.baomidou.mybatisplus.extension.service.IService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.yugao.fintech.antelope.member.mapper.MemberUserMapper;
import com.yugao.fintech.antelope.member.model.entity.MemberUser;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Repository;

/**
 * 会员用户仓储层
 */
@Slf4j
@Repository
public class MemberUserManager extends ServiceImpl<MemberUserMapper, MemberUser> implements IService<MemberUser> {
    public MemberUser getByPhone(String phone) {
        return this.getOne(MemberUser.lqw().eq(MemberUser::getPhone, phone));
    }
}
